from django.db import models


class CoupleSegment(models.Model):
    couple_segment_id = models.AutoField(primary_key=True, verbose_name='组合关联ID')
    ship_segments_id = models.IntegerField(verbose_name='分段ID')
    combined_segment_id = models.IntegerField(verbose_name='组合分段ID')

    def __str__(self):
        return f"{self.ship_segments_id} -> {self.combined_segment_id}"

    class Meta:
        db_table = 'couple_segment'
        verbose_name = '组合分段关联'
        verbose_name_plural = '组合分段关联列表'

